cmake_minimum_required(VERSION 3.24)
#===============================================================================
# 设置项目
#===============================================================================
project(dolphindb-plugin-ama)

if(WIN32)
  find_package(folly CONFIG REQUIRED)
endif()

# set(BOOST_ROOT "C:/ProgramData/scoop/apps/boost/current")
# set(BOOST_INCLUDEDIR "${BOOST_ROOT}/include")
# set(BOOST_LIBRARYDIR "${BOOST_ROOT}/lib")
# 设置 Boost 使用的编译器版本
# set(Boost_COMPILER "-vc143")
# 设置*.cmake文件目录
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

# 支持TradevDeps.cmake
include(TradevDeps)

# 安装依赖项目
if (UNIX)
  # 只在UNIX下用编译版本的folly，Windows下用vcpkg安装
  _setup_folly()
endif()
_setup_amdama()
_setup_dolphindb_cxx_api()

# 项目目录
add_subdirectory(src/service)
